Action The equality operator yields the boolean value true if the value of expression1 and the value of expression2 are the same.
Examples file.type ("myFile") equals 'TEXT'
» true
This expression evaluates to true if file.type returns ‘TEXT’ as its result.
27 == "27"
» true
When coerced to be of the same type, the two representations of the number 27 are equal, and the result of the operation is true.
Notes • There is no difference between the two forms, == and equals.
• UserTalk employs automatic type coercion when evaluating arithmetic and comparative operations; the two expressions need not be of the same type for their values to be “equal.”